package com.kui.web;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kui.entity.Folder;
import com.kui.service.FolderService;

public class FolderServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
			FolderService fs = new FolderService();
			List<Folder> folderlist = fs.findAll();
			
			request.setAttribute("folderlist", folderlist);
			request.getRequestDispatcher("WEB-INF/views/folderlist.jsp").forward(request, response);
	}

	
	
}
